package com.quanxi.qxaimain.controller.v1.IndexDebugging;
/**
 * Author: caiyisen
 * Date: 2024/6/07
 * Time: 11:12
 * Package:com.quanxi.qxEmrForKn.dao.IndexDebugging
 * Project:qxEmrForKn
 */

import com.alibaba.fastjson.JSONObject;
import com.quanxi.qxaimain.common.globalException.NotControllerResponseAdvice;
import com.quanxi.qxaimain.dao.IndexDebugging.IndexDebuggingMapper;
import com.quanxi.qxaimain.service.IndexDebuggingServer.IndexDebuggingServer;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;


@RestController
@RequestMapping("/IndexDebugging")
//@Api(tags = "增删改查")
public class IndexDebuggingController {


    @Resource
    private IndexDebuggingServer Server;

    @Resource
    private IndexDebuggingMapper mapper;
    @NotControllerResponseAdvice
    @PostMapping("/AddSqlNew")
    public Object AddSqlNew(@RequestBody JSONObject params){
        return Server.AddSqlNew(params);
    }

    @NotControllerResponseAdvice
    @PostMapping("/Delete")
    public Object Delete(@RequestBody JSONObject params){
        return Server.Delete(params);
    }
    @NotControllerResponseAdvice
    @PostMapping("/UpdateSqlNew")
    public Object UpdateSqlNew(@RequestBody JSONObject params){
        return Server.UpdateSqlNew(params);
    }

    @NotControllerResponseAdvice
    @PostMapping("/Search")
    public Object Search(@RequestBody JSONObject params){
        return Server.Search(params); //自定义返回类型


    }


    @NotControllerResponseAdvice
    @PostMapping("/Download")
    public Object Download(@RequestBody JSONObject params){
        return Server.Download(params);
    }

}
